<form onsubmit="<?php echo AjaxTo(UrlFor('Guard/DoLogin'), array('function' => 'function(content,code){$(\'#window_myWindow\').append(content);}'));?>return false">
<div align="center" style="color: red;">you can not access the action: 
<?php echo $LastPlugin.'/'.$LastAction;?></div>
<div align="center" style="color: green;"><font size="+2">帐号登录</font></div>
帐号：<input type="text" id="account" name="account"/><br>
密码：<input type="password" id="password" name="password"/><br>

<? echo ButtonTo(CPluginManager::HOMEPAGE_NAME.'/Index', '返回到首页')?>
<? echo ButtonTo('Guard/Index', '登录')?>
</form>
<script>
$('#window_login').dialog({close:
    function(event, ui) {
       <? echo AjaxTo(UrlFor(CPluginManager::HOMEPAGE_NAME.'/Index'));?>
   }}
);
</script>